home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7915 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: its.hooked.net!usenet
  2. From: Gunnar Proppe <nervecel@hooked.net>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: No struct in C++!!?
  5. Date: Wed, 14 Feb 1996 09:53:40 +0000
  6. Organization: Hooked Online Services
  7. Message-ID: <3121B124.7A28@hooked.net>
  8. References: <1996Feb14.151620.5532@queens-belfast.ac.uk>
  9. NNTP-Posting-Host: like-46.ppp.hooked.net
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (Macintosh; I; 68K)
  14.  
  15. Georg Woste wrote:
  16. > to the paradigm of C++. Shouldn't be everything in a C++ programm
  17. > either classes, objects or the interaction between objects?
  18. > So is it bad C++ style, to use functions or data outside from
  19. > classes (objects)?
  20.  
  21. I've just been reading _The C++ Programming Language_ by Bjarne 
  22. Stroustrup, the creator of C++, and he addresses this question.  While 
  23. he does say that (and I'm heavily paraphrasing here) the object 
  24. paradigm is usually much easier to follow (once you get it) and to 
  25. maintain, there are cases where it just becomes a pedantic exercise to 
  26. try to fit a problem into a set of objects.  When you need a struct, 
  27. use a struct; don't try to fit a square peg into a round hole.
  28.